En

curl官网安全更新(2021-07-21)

来源:curl官网 发布日期:2021-07-21 阅读次数:6451 评论:0

基本信息

发布日期:2021-07-21(官方当地时间)

更新类型:安全更新

更新版本:未知

感知时间:2021-07-21 15:06:19

风险等级:中危

情报贡献:TSRC

更新标题

TELNET stack contents disclosure again

更新详情

curl / Docs / Security Problems / TELNET stack contents disclosure againRelated:
Bug Bounty
Changelog
Donate
FAQ
Security Problems
Security Process
Vulnerabilities TableTELNET stack contents disclosure again
Project curl Security Advisory, July 21st 2021 - Permalink
VULNERABILITY
curl supports the -t command line option, known as CURLOPT_TELNETOPTIONS in libcurl. This rarely used option is used to send variable=content pairs to TELNET servers.
Due to flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server. Therefore potentially revealing sensitive internal information to the server using a clear-text network protocol.
This could happen because curl did not call and use sscanf() correctly when parsing the string provided by the application.
The previous curl security vulnerability CVE-2021-22898 is almost identical to this one but the fix was insufficient so this security vulnerability remained.
We are not aware of any exploit of this flaw.
INFO
This flaw has existed in curl since commit a1d6ad2610 in libcurl 7.7, released on March 22, 2001. There was a previous attempt to fix this issue in curl 7.77.0 but it was not done proper.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2021-22925 to this issue.
CWE-457: Use of Uninitialized Variable
Severity: Medium
AFFECTED VERSIONSAffected versions: curl 7.7 to and including 7.77.0
Not affected versions: curl < 7.7 and curl >= 7.78.0Also note that libcurl is used by many applications, and not always advertised as such.
THE SOLUTION
Use sscanf() properly and only use properly filled-in buffers.
A fix for CVE-2021-22925
RECOMMENDATIONS
A - Upgrade curl to version 7.78.0
B - Apply the patch to your local version
C - Avoid using CURLOPT_TELNETOPTIONS
TIMELINE
This issue was reported to the curl project on June 11, 2021.
This advisory was posted on July 21, 2021.
CREDITS
This issue was reported and patched by Red Hat Product Security.
Thanks a lot!

软件描述

cURL是一个利用URL语法在命令行下工作的文件传输工具,1997年首次发行。它支持文件上传和下载,所以是综合传输工具,但按传统,习惯称cURL为下载工具

CVE编号

TSRC分析

暂无

业界资讯

暂无

评论

提交评论 您输入的评论有误,请重新输入