CVE-2024-0243
Last modified
CVE-2024-0243 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resolved in https://github.com/langchain-ai/langchain/pull/15559. EPSS estimates a 0.52% chance of exploitation in the next 30 days.
Description
With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resolved in https://github.com/langchain-ai/langchain/pull/15559
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Langchain | Langchain | < 0.1.0 |
References
- https://github.com/langchain-ai/langchain/pull/15559Issue Tracking, Patch
- https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861Exploit, Issue Tracking, Third Party Advisory
- https://github.com/langchain-ai/langchain/pull/15559Issue Tracking, Patch
- https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861Exploit, Issue Tracking, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-0243?
How severe is CVE-2024-0243?
How do I fix CVE-2024-0243?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-0237The EventON WordPress plugin through 4.5.8, EventON WordPres…5.3
- CVE-2024-0238The EventON Premium WordPress plugin before 4.5.6, EventON W…6.1
- CVE-2024-0239The Contact Form 7 Connector WordPress plugin before 1.2.3 d…6.1
- CVE-2024-0240A memory leak in the Silicon Labs' Bluetooth stack for EFR32…6.5
- CVE-2024-0241encoded_id-rails versions before 1.0.0.beta2 are affected by…7.5
- CVE-2024-0242Under certain circumstances IQ Panel4 and IQ4 Hub panel soft…9.8
- CVE-2024-0244Buffer overflow in CPCA PCFAX number process of Office Multi…9.8
- CVE-2024-0245A misconfiguration in the AndroidManifest.xml file in hamza4…5.5
- CVE-2024-0246A vulnerability classified as problematic has been found in …6.1
- CVE-2024-0247A vulnerability classified as critical was found in CodeAstr…9.8
- CVE-2024-0248The EazyDocs WordPress plugin before 2.4.0 re-introduced CVE…4.3
- CVE-2024-0249The Advanced Schedule Posts WordPress plugin through 2.1.8 d…7.1
Are you affected by CVE-2024-0243?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
