Movatterモバイル変換


[0]ホーム

URL:


Docs Overview
Project
Bug BountyBug ReportCode of conductDependenciesDonateFAQFeaturesGovernanceHistoryInstallKnown BugsLogoTODOwebsite Info
Protocols
CA ExtractHTTP cookiesHTTP/3MQTTSSL certsSSL libs comparedURL syntaxWebSocket
Releases
Changelogcurl CVEsRelease TableVersion NumberingVulnerabilities
Tool
Comparison Tablecurl man pageHTTP Scriptingmk-ca-bundleTutorialWhen options were added
Who and Why
CompaniesCopyrightSponsorsThanksThe name
curl /Docs /curl CVEs /TELNET stack contents disclosure again
Related:
Audits
Bug Bounty
Changelog
curl CVEs
JSON metadata
Original report
Vulnerability Disclosure
Vulnerabilities Table
Awarded 800 USD

CVE-2021-22925

TELNET stack contentsdisclosure again

Project curl Security Advisory, July 21st 2021 -Permalink

VULNERABILITY

curl supports the-t command line option, known asCURLOPT_TELNETOPTIONS in libcurl. This rarely used optionis used to send variable=content pairs to TELNET servers.

Due to flaw in the option parser for sendingNEW_ENVvariables, libcurl could be made to pass on uninitialized data from astack based buffer to the server. Therefore potentially revealingsensitive internal information to the server using a clear-text networkprotocol.

This could happen because curl did not call and usesscanf() correctly when parsing the string provided by theapplication.

The previous curl security vulnerabilityCVE-2021-22898 isalmost identical to this one but the fix was insufficient so thissecurity vulnerability remained.

INFO

There was a previous attempt to fix this issue in curl7.77.0 but itwas not done proper.

The Common Vulnerabilities and Exposures (CVE) project has assignedthe name CVE-2021-22925 to this issue.

CWE-457: Use of Uninitialized Variable

Severity: Medium

AFFECTED VERSIONS

libcurl is used by many applications, but not always advertised assuch.

SOLUTION

Usesscanf() properly and only use properly filled-inbuffers.

RECOMMENDATIONS

A - Upgrade curl to version7.78.0

B - Apply the patch to your local version

C - Avoid usingCURLOPT_TELNETOPTIONS

TIMELINE

This issue was reported to the curl project on June 11, 2021.

This advisory was posted on July 21, 2021.

CREDITS

Thanks a lot!


[8]ページ先頭

©2009-2025 Movatter.jp