{"schemaVersion":3,"id":"CVE-2022-31671","aliases":["GHSA-q76q-q8hw-hmpw","BIT-harbor-2022-31671"],"status":"published","duplicateOf":null,"title":null,"description":"Harbor fails to validate user permissions when reading and updating job execution logs through the P2P preheat execution logs. By sending a request that attempts to read/update P2P preheat execution logs and specifying different job IDs, malicious authenticated users could read all the job logs stored in the Harbor database.","dates":{"published":"2024-11-14T11:42:22.373Z","modified":"2024-11-14T14:10:27.403Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","exploitability":7.9,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0053,"percentile":0.43628,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.0040000000000000105,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00534},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0053,"percentile":0.43628}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00534,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0053,"percentile":0.43628}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-285","name":"Improper Authorization","description":"The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/285.html"},{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"github.com/goharbor","product":"harbor","name":"github.com/goharbor/harbor","label":"harbor","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/goharbor/harbor","purlType":"golang","versions":[{"text":"≥ 1.0.0, < 1.10.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.4.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.5.0, < 2.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.10.13 | ≥ 2.0.0, < 2.4.3 | ≥ 2.5.0, < 2.5.2","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"harbor","name":"harbor","label":"harbor","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.4.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.5.0, < 2.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.4.3 | ≥ 2.5.0, < 2.5.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"harbor","label":"Harbor","category":"server-app"}},"hubHref":"/vendor/linuxfoundation/harbor"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw","label":"github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw","hostname":"github.com","tags":["WEB","Vendor Advisory"]},{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7","label":"github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7","hostname":"github.com","tags":["WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671","label":"nvd.nist.gov/vuln/detail/CVE-2022-31671","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/goharbor/harbor","label":"github.com/goharbor/harbor","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-11-14T11:42:22.373Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-14T14:10:27.403Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:00:07.573Z","stale":false,"partial":false}}