Artifactspublic-v0

curl

master
ply4 git calls490 ms295 KiB2 cachedprotocol v2
498 lines20 KiBRaw

curl vulnerability disclosure policy

This document describes how security vulnerabilities are handled in the curl project.

There is no bug bounty and the curl project never offers rewards for reported vulnerabilities.

Information

All known and public curl or libcurl related vulnerabilities are listed on the curl website security page.

Vulnerability Handling

The typical process for handling a new security vulnerability is as follows.

Report

The person discovering the issue, the reporter, reports the vulnerability on HackerOne. Issues filed there reach a handful of selected and trusted people.

Alternatively, a reporter may submit the report directly on GitHub if the severity is deemed less than HIGH.

When communicating in the curl project, please explain your issues or improvements briefly and clearly in your own human voice. Do not lazily paste massive, AI-generated explanations; it is your responsibility to invest a few extra minutes into making your message digestible. The maintainers review submissions constantly, and clear writing reduces their daily burden and friction.

The curl project cannot handle vulnerability reports sent to us over email. We lose track of the reports. We cannot easily disclose them. Please do not send us reports over email.

Messages on HackerOne that do not relate to the reporting or managing of an undisclosed security vulnerability in curl or libcurl are ignored and no further action is required.

Confirming it

Someone in the security team responds to the original report to acknowledge that a human has seen the report.

The curl security team investigates the claims in the report and either rejects it or accepts it. See below for examples of problems that are not considered vulnerabilities.

If the report is rejected, the team explains why.

If the report is confirmed and acknowledged, the team writes to the reporter to let them know it is.

Low/Medium severity issues are public

For all reported vulnerabilities with severity LOW or MEDIUM, the reporter is asked to instead submit it publicly in the curl issue tracker on GitHub, or even better as a pull-request. These issues are then not managed any further privately on HackerOne.

If in doubt of the severity, starting out on HackerOne is fine.

Asking the reporter to instead submit the issue on GitHub does not necessarily imply that we accept it as a vulnerability, but we might. It might also be a plain bug. It should be treated as a "let's continue the conversation over there in the public" request.

If a reported issue is deemed to be severity HIGH or CRITICAL, it should remain on HackerOne to be handled privately until a pending releases can be shipped that includes a fix for the problem.

Fixing

A vulnerability is a bug. We fix all known bugs. If the report is handled on GitHub, the whole world can and is encouraged to participate in the discussion and bugfixing. For privately reported vulnerabilities, only the reporter and the curl security team can participate in the discussion and fixing.

A fix for the reported vulnerability together with extensive information about the problem should be released "as soon as possible" - most often synchronized with an upcoming release.

If the reporter, or anyone else involved, thinks the next planned release is too far away (and the severity is HIGH or CRITICAL), an earlier release should be considered.

If the severity level of the issue is set to LOW or MEDIUM, the fix is worked on and merged into the master repository via a normal pull-request.

Vulnerabilities at severity HIGH or CRITICAL get fixed and worked on in a private branch to reduce the impact and risk for existing users. Only the reported and the curl security team can access this.

Documenting

Write a security advisory draft about the problem that explains what the problem is, its impact, which versions it affects, solutions or workarounds, when the release is out and make sure to credit all contributors properly. Figure out the CWE (Common Weakness Enumeration) number for the flaw. See SECURITY-ADVISORY for help on creating the advisory.

Request a CVE Id for the issue. curl is a CNA (CVE Numbering Authority) and can request its own numbers.

Update the "security advisory" with the CVE number.

Release preparations

No more than seven days before release, inform distros@openwall to prepare them about the upcoming public security vulnerability announcement - attach the advisory draft for information with CVE and current patch. 'distros' does not accept an embargo longer than 7 days and they do not care for Windows-specific flaws.

No more than 48 hours before the release, the private branch is merged into the master branch and pushed (if one was used). Once pushed, the information is accessible to the public and the actual release should follow suit immediately afterwards. The time between the push and the release is used for final tests and reviews.

Release

The project team creates a release that includes the fix.

The project team announces the release and the vulnerability to the world in the same manner we always announce releases. It gets sent to the curl-announce, curl-library and curl-users mailing lists.

The security webpage on the website should get the new vulnerability mentioned.

security (at curl dot se)

This is a private mailing list to reach the curl security team. It shall not be used for vulnerability reporting.

We do not make the list of list participants public mostly because it tends to vary somewhat over time and a list somewhere only risks getting outdated.

Disclose the report

For transparency and in the spirit of complete openness, all vulnerability reports submitted to the project, valid or not, are disclosed and made public once they have been handled.

Severity levels

The curl project's security team rates security problems using four severity levels depending on how serious we consider the problem to be. We use Low, Medium, High and Critical. We refrain from using numerical scoring of vulnerabilities.

We do not support CVSS as a method to grade security vulnerabilities, so we do not set them for CVE records published by the curl project. We believe CVSS is a broken system that often does not properly evaluate to suitable severity levels that reflect all dimensions and factors involved. Other organizations however set and provide CVSS scores for curl vulnerabilities. You need to decide for yourself if you believe they know enough about the subjects involved to make reasonable assessments. Deciding between four different severity levels is hard enough for us.

When deciding severity level on a particular issue, we take all the factors into account: attack vector, attack complexity, required privileges, necessary build configuration, protocols involved, platform specifics and also what effects a possible exploit or trigger of the issue can lead to, including confidentiality, integrity or availability problems.

Low

This is a security problem that is truly hard or unlikely to exploit or trigger. Due to timing, platform requirements or the fact that options or protocols involved are rare etc. Past example

Issues that are likely to be detected by basic testing are likely to not be considered more severe than Low. Users that do not test cannot be expected to have secure setups to begin with.

Medium

This is a security problem that is less hard than Low to exploit or trigger. Less strict timing, wider platform availability or involving more widely used options or protocols. A problem that usually needs something else to also happen to become serious. Past example

High

This issue is in itself a serious problem with real world impact. Flaws that can easily compromise the confidentiality, integrity or availability of resources. Exploiting or triggering this problem is not hard. Past example

Critical

Easily exploitable by a remote unauthenticated attacker and lead to system compromise (arbitrary code execution) without requiring user interaction, with a common configuration on a popular platform. This issue has few restrictions and requirements and can be exploited easily using most curl configurations. Past example

Not security issues

This is an incomplete list of issues that are not considered vulnerabilities.

Small memory leaks

We do not consider a small memory leak a security problem; even if the amount of allocated memory grows by a small amount every now and then. Long-living applications and services already need to have countermeasures and deal with growing memory usage, be it leaks or increased use. A small memory or resource leak is then expected to not cause a security problem.

Of course there can be a discussion if a leak is small or not. A large leak can be considered a security problem due to the DOS risk. If leaked memory contains sensitive data it might also qualify as a security problem.

Never-ending transfers

We do not consider flaws that cause a transfer to never end to be a security problem. There are already several benign and likely reasons for transfers to stall and never end, so applications that cannot deal with never-ending transfers already need to have counter-measures established.

Well-known attacks, like Slowloris, that send partial requests are usually not considered a flaw. If the problem bypasses the regular counter-measures and it causes a never-ending transfer, it might be a security problem.

Not practically possible

If the flaw or vulnerability cannot practically get executed on existing hardware it is not a security problem.

API misuse

If a reported issue only triggers by an application using the API in a way that is not documented to work or even documented to not work, it is probably not going to be considered a security problem. We only guarantee secure and proper functionality when the APIs are used as expected and documented.

There can be a discussion about what the documentation actually means and how to interpret the text, which might end up with us still agreeing that it is a security problem.

Local attackers already present

When an issue can only be attacked or misused by an attacker present on the local system or network, the bar is raised. If a local user wrongfully has elevated rights on your system enough to attack curl, they can probably already do much worse harm and the problem is not really in curl.

Debug & Experiments

Vulnerabilities in features which are off by default (in the build) and documented as experimental, or exist only in debug mode, are not considered security problems.

The same applies to scripts and software which are not installed by default through the make install rule.

Test code

curl has an extensive test suite with lots of code written specifically to exercise and verify curl, libcurl and specific internal functions. The test code and its associated test servers are not intended for production use. They are not secure, you should not assume otherwise and must not report about security problems in those.

URL inconsistencies

URL parser inconsistencies between browsers and curl are expected and are not considered security vulnerabilities. The WHATWG URL Specification and RFC 3986+ (the plus meaning that it is an extended version) are not completely interoperable.

Obvious parser bugs can still be vulnerabilities of course.

Visible command line arguments

The curl command blanks the contents of a number of command line arguments to prevent them from appearing in process listings. It does not blank all arguments, even though some that are not blanked might contain sensitive data. We consider this functionality a best-effort and omissions are not security vulnerabilities.

  • not all systems allow the arguments to be blanked in the first place
  • since curl blanks the argument itself they are readable for a short moment no matter what
  • virtually every argument can contain sensitive data, depending on use
  • blanking all arguments would make it impractical for users to differentiate curl command lines in process listings

Busy-loops

Busy-loops that consume 100% CPU time but eventually end (perhaps due to a set timeout value or otherwise) are not considered security problems. Applications are supposed to already handle situations when the transfer loop legitimately consumes 100% CPU time, so while a prolonged such busy-loop is a nasty bug, we do not consider it a security problem.

Saving files

curl cannot protect against attacks where an attacker has write access to the same directory where curl is directed to save files.

Tricking a user to run a command line

A creative, misleading or funny looking command line is not a security problem. The curl command line tool takes options and URLs on the command line and if an attacker can trick the user to run a specifically crafted curl command line, all bets are off. Such an attacker can already have the user run a much worse command that can do something fatal (like sudo rm -rf /).

Terminal output and escape sequences

Content that is transferred from a server and gets displayed in a terminal by curl may contain escape sequences or use other tricks to fool the user. This is curl working as designed and is not a curl security problem. Escape sequences, moving cursor, changing color etc, is also frequently used for good. To reduce the risk of getting fooled, save files and browse them after download using a display method that minimizes risks.

NULL dereferences and crashes

If a malicious server can trigger a NULL dereference in curl or otherwise cause curl to crash (and nothing worse), chances are big that we do not consider that a security problem.

Malicious servers can already cause considerable harm and denial of service like scenarios without having to trigger such code paths. For example by stalling, being terribly slow or by delivering enormous amounts of data. Additionally, applications are expected to handle "normal" crashes without that being the end of the world.

There need to be more and special circumstances to treat such problems as security issues.

Legacy dependencies

Problems that can be triggered only by the use of a legacy dependency are not considered security problems.

A legacy dependency is here defined as:

  • the legacy version was released over ten years ago AND

  • the legacy version is no longer in use by any existing still supported operating system or distribution AND

  • there are modern versions of equivalent or better functionality offered and in common use

Weak algorithms required for functionality

curl supports several algorithms that are considered weak, like DES and MD5. These algorithms are still not curl security vulnerabilities or security problems as they are only used when the users explicitly ask for their use by using the protocols or options that require the use of those algorithms.

When servers upgrade to use secure alternatives, curl users should use those options/protocols.

CRLF in data

curl makes barely any claims of cleaning input or rejecting invalid data. A user that uses a curl feature can send in creative sequences that include carriage-return (CR) or line-feed (LF) characters.

Therefore, we reject the idea of CRLF injection as a security problem. It is a feature that users can send creative byte sequences. If users do not want to send such octets, they are in control and should avoid sending such bytes to curl.

For example, a user might pass in a username that looks like Mr[CR][LF]Smith. It may cause some minor havoc in the protocol handling, depending on what protocol is used.

Non-released code

Only curl releases are ever considered secure. Between releases, we are under development and then we may have code present in the git repository that is insecure, but without those flaws being considered as vulnerabilities. Another reason we strongly suggest you only use curl release versions in production.

Unreleased code may also contain fixes to problems that were present in the most recent release.

Old releases

Prioritize vulnerabilities reproducible on the latest release and the current master branch; older issues have likely been remediated.

Low or Medium severity vulnerability reports restricted to releases older than three years are out of scope and are closed without action. We do not have bandwidth to also manage lost causes.

curl major incident response

Vulnerability disclosure manages the full life cycle of a vulnerability affecting curl - where the curl-security team privately engages with reporters coordinating on embargo and eventual release of security fixes.

For most vulnerabilities (even critical vulnerabilities) this is the normal 'mode' of incident response.

A major incident is defined as something that has much larger scope and impact on users and developers of curl.

A major incident usually encompasses one or more of the following:

  • broad and deep impact on developers, distros and users
  • high visibility
  • remote code execution
  • exploit readily available
  • critical curl infrastructure compromised
  • time sensitive
  • premature disclosure (e.g. embargo broken)

A major incident is declared only when it is deemed that the normal vulnerability disclosure process is not sufficient.

The curl major incident process is as follows:

Major incident begins

Only a member of the curl-security team can declare a major incident via any or all of the following communication channels:

  • irc: channel #curl on the network Libera.Chat
  • mailing-lists:
    • curl-announce
    • curl-users
    • curl-distros
  • website: curl.se

This declaration may also be transmitted via other channels, though the above are considered official channels.

The veracity of such a communication can be verified by consulting two or more curl-security team members.

This announcement nominates, from curl-security team, the following roles:

  • incident lead - Coordinates technical efforts
  • communication lead - Single point of public contact

It is likely that our BDFL occupies one of these roles, though this plan does not depend on it.

A declaration may also contain more detailed information but as we honor embargoes and vulnerability disclosure throughout this process, it may also contain a brief notification that a major incident is occurring.

Major incident ongoing

During the incident - all press, media, legal or commercial entities should contact communication lead (security@curl.se).

Existing curl-security team internal communication channels are used for all internal communication.

Existing vulnerability disclosure process are followed for any embargoes and fixes.

Where possible, public communications are provided:

  • regular communication from communication lead (for example daily update)

  • asynchronous communication from incident lead

  • Delivered to the aforementioned curl communication channels.

A log is kept of all external and internal communication.

Once fixes have been released we may provide a more detailed postmortem and overall timeline of events.

Major incident ends

Both the incident and communication leads declare when a major incident has finished.

Any notices are removed and a return to normal vulnerability disclosure process.

1<!--
2Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
4SPDX-License-Identifier: curl
5-->
7# curl vulnerability disclosure policy
9This document describes how security vulnerabilities are handled in the curl
10project.
12There is no bug bounty and the curl project never offers rewards for reported
13vulnerabilities.
15## Information
17All known and public curl or libcurl related vulnerabilities are listed on
18[the curl website security page](https://curl.se/docs/security.html).
20## Vulnerability Handling
22The typical process for handling a new security vulnerability is as follows.
24### Report
26The person discovering the issue, the reporter, reports the vulnerability on
27[HackerOne](https://hackerone.com/curl). Issues filed there reach a handful of
28selected and trusted people.
30Alternatively, a reporter may submit the report [directly on
31GitHub](https://github.com/curl/curl/issues) if the severity is deemed less
32than HIGH.
34When communicating in the curl project, please explain your issues or
35improvements briefly and clearly in your own human voice. Do not lazily paste
36massive, AI-generated explanations; it is your responsibility to invest a few
37extra minutes into making your message digestible. The maintainers review
38submissions constantly, and clear writing reduces their daily burden and
39friction.
41The curl project cannot handle vulnerability reports sent to us over email. We
42lose track of the reports. We cannot easily disclose them. Please do not send
43us reports over email.
45Messages on HackerOne that do not relate to the reporting or managing of an
46undisclosed security vulnerability in curl or libcurl are ignored and no
47further action is required.
49### Confirming it
51Someone in the security team responds to the original report to acknowledge
52that a human has seen the report.
54The curl security team investigates the claims in the report and either
55rejects it or accepts it. See below for examples of problems that are not
56considered vulnerabilities.
58If the report is rejected, the team explains why.
60If the report is confirmed and acknowledged, the team writes to the reporter
61to let them know it is.
63### Low/Medium severity issues are public
65For all reported vulnerabilities with severity LOW or MEDIUM, the reporter is
66asked to instead submit it publicly in the [curl issue
67tracker](https://github.com/curl/curl/issues) on GitHub, or even better as a
68[pull-request](https://github.com/curl/curl/pulls). These issues are then not
69managed any further privately on HackerOne.
71If in doubt of the severity, starting out on HackerOne is fine.
73Asking the reporter to instead submit the issue on GitHub does not necessarily
74imply that we accept it as a vulnerability, but we might. It might also be a
75plain bug. It should be treated as a "let's continue the conversation over
76there in the public" request.
78If a reported issue is deemed to be severity HIGH or CRITICAL, it should
79remain on HackerOne to be handled privately until a pending releases can be
80shipped that includes a fix for the problem.
82### Fixing
84A vulnerability is a bug. We fix all known bugs. If the report is handled on
85GitHub, the whole world can and is encouraged to participate in the discussion
86and bugfixing. For privately reported vulnerabilities, only the reporter and
87the curl security team can participate in the discussion and fixing.
89A fix for the reported vulnerability together with extensive information about
90the problem should be released "as soon as possible" - most often synchronized
91with an upcoming release.
93If the reporter, or anyone else involved, thinks the next planned release is
94too far away (and the severity is HIGH or CRITICAL), an earlier release should
95be considered.
97If the severity level of the issue is set to LOW or MEDIUM, the fix is worked
98on and merged into the master repository via a normal pull-request.
100Vulnerabilities at severity HIGH or CRITICAL get fixed and worked on in a
101private branch to reduce the impact and risk for existing users. Only the
102reported and the curl security team can access this.
104### Documenting
106Write a security advisory draft about the problem that explains what the
107problem is, its impact, which versions it affects, solutions or workarounds,
108when the release is out and make sure to credit all contributors properly.
109Figure out the CWE (Common Weakness Enumeration) number for the flaw. See
110[SECURITY-ADVISORY](https://curl.se/dev/advisory.html) for help on creating
111the advisory.
113Request a CVE Id for the issue. curl is a CNA (CVE Numbering Authority) and
114can request its own numbers.
116Update the "security advisory" with the CVE number.
118### Release preparations
120No more than seven days before release, inform
121[distros@openwall](https://oss-security.openwall.org/wiki/mailing-lists/distros)
122to prepare them about the upcoming public security vulnerability
123announcement - attach the advisory draft for information with CVE and current
124patch. 'distros' does not accept an embargo longer than 7 days and they do not
125care for Windows-specific flaws.
127No more than 48 hours before the release, the private branch is merged into
128the master branch and pushed (if one was used). Once pushed, the information
129is accessible to the public and the actual release should follow suit
130immediately afterwards. The time between the push and the release is used for
131final tests and reviews.
133### Release
135The project team creates a release that includes the fix.
137The project team announces the release and the vulnerability to the world in
138the same manner we always announce releases. It gets sent to the
139curl-announce, curl-library and curl-users mailing lists.
141The security webpage on the website should get the new vulnerability
142mentioned.
144## security (at curl dot se)
146This is a private mailing list to reach the curl security team. It shall not
147be used for vulnerability reporting.
149We do not make the list of list participants public mostly because it tends to
150vary somewhat over time and a list somewhere only risks getting outdated.
152## Disclose the report
154For transparency and in the spirit of complete openness, *all* vulnerability
155reports submitted to the project, valid or not, are disclosed and made public
156once they have been handled.
158# Severity levels
160The curl project's security team rates security problems using four severity
161levels depending on how serious we consider the problem to be. We use **Low**,
162**Medium**, **High** and **Critical**. We refrain from using numerical scoring
163of vulnerabilities.
165We do not support CVSS as a method to grade security vulnerabilities, so we do
166not set them for CVE records published by the curl project. We believe CVSS is
167a broken system that often does not properly evaluate to suitable severity
168levels that reflect all dimensions and factors involved. Other organizations
169however set and provide CVSS scores for curl vulnerabilities. You need to
170decide for yourself if you believe they know enough about the subjects
171involved to make reasonable assessments. Deciding between four different
172severity levels is hard enough for us.
174When deciding severity level on a particular issue, we take all the factors
175into account: attack vector, attack complexity, required privileges, necessary
176build configuration, protocols involved, platform specifics and also what
177effects a possible exploit or trigger of the issue can lead to, including
178confidentiality, integrity or availability problems.
180## Low
182This is a security problem that is truly hard or unlikely to exploit or
183trigger. Due to timing, platform requirements or the fact that options or
184protocols involved are rare etc. [Past
185example](https://curl.se/docs/CVE-2022-43552.html)
187Issues that are likely to be detected by basic testing are likely to not be
188considered more severe than **Low**. Users that do not test cannot be expected
189to have secure setups to begin with.
191## Medium
193This is a security problem that is less hard than **Low** to exploit or
194trigger. Less strict timing, wider platform availability or involving more
195widely used options or protocols. A problem that usually needs something else
196to also happen to become serious. [Past
197example](https://curl.se/docs/CVE-2022-32206.html)
199## High
201This issue is in itself a serious problem with real world impact. Flaws that
202can easily compromise the confidentiality, integrity or availability of
203resources. Exploiting or triggering this problem is not hard. [Past
204example](https://curl.se/docs/CVE-2019-3822.html)
206## Critical
208Easily exploitable by a remote unauthenticated attacker and lead to system
209compromise (arbitrary code execution) without requiring user interaction, with
210a common configuration on a popular platform. This issue has few restrictions
211and requirements and can be exploited easily using most curl configurations.
212[Past example](https://curl.se/docs/CVE-2000-0973.html)
214# Not security issues
216This is an incomplete list of issues that are not considered vulnerabilities.
218## Small memory leaks
220We do not consider a small memory leak a security problem; even if the amount
221of allocated memory grows by a small amount every now and then. Long-living
222applications and services already need to have countermeasures and deal with
223growing memory usage, be it leaks or increased use. A small memory or resource
224leak is then expected to *not* cause a security problem.
226Of course there can be a discussion if a leak is small or not. A large leak
227can be considered a security problem due to the DOS risk. If leaked memory
228contains sensitive data it might also qualify as a security problem.
230## Never-ending transfers
232We do not consider flaws that cause a transfer to never end to be a security
233problem. There are already several benign and likely reasons for transfers to
234stall and never end, so applications that cannot deal with never-ending
235transfers already need to have counter-measures established.
237Well-known attacks, like
238[Slowloris](https://en.wikipedia.org/wiki/Slowloris_(cyber_attack)), that send
239partial requests are usually not considered a flaw. If the problem bypasses
240the regular counter-measures and it causes a never-ending transfer, it might
241be a security problem.
243## Not practically possible
245If the flaw or vulnerability cannot practically get executed on existing
246hardware it is not a security problem.
248## API misuse
250If a reported issue only triggers by an application using the API in a way
251that is not documented to work or even documented to not work, it is probably
252not going to be considered a security problem. We only guarantee secure and
253proper functionality when the APIs are used as expected and documented.
255There can be a discussion about what the documentation actually means and how
256to interpret the text, which might end up with us still agreeing that it is a
257security problem.
259## Local attackers already present
261When an issue can only be attacked or misused by an attacker present on the
262local system or network, the bar is raised. If a local user wrongfully has
263elevated rights on your system enough to attack curl, they can probably
264already do much worse harm and the problem is not really in curl.
266## Debug & Experiments
268Vulnerabilities in features which are off by default (in the build) and
269documented as experimental, or exist only in debug mode, are not considered
270security problems.
272The same applies to scripts and software which are not installed by default
273through the make install rule.
275## Test code
277curl has an extensive test suite with lots of code written specifically to
278exercise and verify curl, libcurl and specific internal functions. The test
279code and its associated test servers are *not* intended for production use.
280They are not secure, you should not assume otherwise and must not report about
281security problems in those.
283## URL inconsistencies
285URL parser inconsistencies between browsers and curl are expected and are not
286considered security vulnerabilities. The WHATWG URL Specification and RFC
2873986+ (the plus meaning that it is an extended version) [are not completely
288interoperable](https://github.com/bagder/docs/blob/master/URL-interop.md).
290Obvious parser bugs can still be vulnerabilities of course.
292## Visible command line arguments
294The curl command blanks the contents of a number of command line arguments to
295prevent them from appearing in process listings. It does not blank all
296arguments, even though some that are not blanked might contain sensitive
297data. We consider this functionality a best-effort and omissions are not
298security vulnerabilities.
300- not all systems allow the arguments to be blanked in the first place
301- since curl blanks the argument itself they are readable for a short moment
302 no matter what
303- virtually every argument can contain sensitive data, depending on use
304- blanking all arguments would make it impractical for users to differentiate
305 curl command lines in process listings
307## Busy-loops
309Busy-loops that consume 100% CPU time but eventually end (perhaps due to a set
310timeout value or otherwise) are not considered security problems. Applications
311are supposed to already handle situations when the transfer loop legitimately
312consumes 100% CPU time, so while a prolonged such busy-loop is a nasty bug, we
313do not consider it a security problem.
315## Saving files
317curl cannot protect against attacks where an attacker has write access to the
318same directory where curl is directed to save files.
320## Tricking a user to run a command line
322A creative, misleading or funny looking command line is not a security
323problem. The curl command line tool takes options and URLs on the command line
324and if an attacker can trick the user to run a specifically crafted curl
325command line, all bets are off. Such an attacker can already have the user run
326a much worse command that can do something fatal (like `sudo rm -rf /`).
328## Terminal output and escape sequences
330Content that is transferred from a server and gets displayed in a terminal by
331curl may contain escape sequences or use other tricks to fool the user. This
332is curl working as designed and is not a curl security problem. Escape
333sequences, moving cursor, changing color etc, is also frequently used for
334good. To reduce the risk of getting fooled, save files and browse them after
335download using a display method that minimizes risks.
337## NULL dereferences and crashes
339If a malicious server can trigger a NULL dereference in curl or otherwise
340cause curl to crash (and nothing worse), chances are big that we do not
341consider that a security problem.
343Malicious servers can already cause considerable harm and denial of service
344like scenarios without having to trigger such code paths. For example by
345stalling, being terribly slow or by delivering enormous amounts of data.
346Additionally, applications are expected to handle "normal" crashes without
347that being the end of the world.
349There need to be more and special circumstances to treat such problems as
350security issues.
352## Legacy dependencies
354Problems that can be triggered only by the use of a *legacy dependency* are
355not considered security problems.
357A *legacy dependency* is here defined as:
359- the legacy version was released over ten years ago AND
361- the legacy version is no longer in use by any existing still supported
362 operating system or distribution AND
364- there are modern versions of equivalent or better functionality offered and
365 in common use
367## Weak algorithms required for functionality
369curl supports several algorithms that are considered weak, like DES and MD5.
370These algorithms are still not curl security vulnerabilities or security
371problems as they are only used when the users explicitly ask for their use by
372using the protocols or options that require the use of those algorithms.
374When servers upgrade to use secure alternatives, curl users should use those
375options/protocols.
377## CRLF in data
379curl makes barely any claims of *cleaning* input or rejecting invalid data. A
380user that uses a curl feature can send in *creative* sequences that include
381carriage-return (CR) or line-feed (LF) characters.
383Therefore, we reject the idea of *CRLF injection* as a security problem. It is
384a *feature* that users can send creative byte sequences. If users do not want
385to send such octets, they are in control and should avoid sending such bytes
386to curl.
388For example, a user might pass in a username that looks like
389`Mr[CR][LF]Smith`. It may cause some minor havoc in the protocol handling,
390depending on what protocol is used.
392## Non-released code
394Only curl releases are ever considered *secure*. Between releases, we are
395under development and then we may have code present in the git repository that
396is insecure, but without those flaws being considered as vulnerabilities.
397Another reason we strongly suggest you only use curl release versions in
398production.
400Unreleased code may also contain fixes to problems that were present in the
401most recent release.
403## Old releases
405Prioritize vulnerabilities reproducible on the latest release and the current
406`master` branch; older issues have likely been remediated.
408Low or Medium severity vulnerability reports restricted to releases older than
409three years are out of scope and are closed without action. We do not have
410bandwidth to also manage lost causes.
412# curl major incident response
414Vulnerability disclosure manages the full life cycle of a vulnerability
415affecting curl - where the **curl-security** team privately engages with
416reporters coordinating on embargo and eventual release of security fixes.
418For most vulnerabilities (even critical vulnerabilities) this is the
419normal _'mode'_ of incident response.
421A **major incident** is defined as something that has much larger scope and
422impact on users and developers of curl.
424A major incident usually encompasses one or more of the following:
425* broad and deep impact on developers, distros and users
426* high visibility
427* remote code execution
428* exploit readily available
429* critical curl infrastructure compromised
430* time sensitive
431* premature disclosure (e.g. embargo broken)
433A major incident is declared only when it is deemed that the normal
434vulnerability disclosure process is not sufficient.
436The curl **major incident** process is as follows:
438## Major incident begins
440Only a member of the **curl-security** team can declare a **major incident**
441via any or all of the following communication channels:
443* **irc**: channel #curl on the network [Libera.Chat](https://libera.chat/)
444* **mailing-lists**:
445 * curl-announce
446 * curl-users
447 * curl-distros
448* **website**: [curl.se](https://curl.se/)
450This declaration may also be transmitted via other channels, though the
451above are considered official channels.
453The veracity of such a communication can be verified by consulting two
454or more **curl-security** team members.
456This announcement nominates, from **curl-security** team, the following
457roles:
459* **incident lead** - Coordinates technical efforts
460* **communication lead** - Single point of public contact
462It is likely that our
463[BDFL](https://en.wikipedia.org/wiki/Benevolent_dictator_for_life) occupies
464one of these roles, though this plan does not depend on it.
466A declaration may also contain more detailed information but as we honor
467embargoes and vulnerability disclosure throughout this process, it may also
468contain a brief notification that a **major incident** is occurring.
470## Major incident ongoing
472During the incident - all press, media, legal or commercial entities should
473contact communication lead (security@curl.se).
475Existing **curl-security** team internal communication channels are used
476for all internal communication.
478Existing vulnerability disclosure process are followed for any embargoes
479and fixes.
481Where possible, public communications are provided:
482* regular communication from communication lead (for example daily update)
483* asynchronous communication from incident lead
485* Delivered to the aforementioned curl communication channels.
487A log is kept of all external and internal communication.
489Once fixes have been released we may provide a more detailed postmortem and
490overall timeline of events.
492## Major incident ends
494Both the incident and communication leads declare when a **major incident**
495has finished.
497Any notices are removed and a return to normal vulnerability disclosure
498process.
Diagnostics4 git calls · 490 ms
CallStatusSizeTime0490 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · hit3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=3
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2008.3 KiB484 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=484
git.response.bytes=8462
git.response.cache=MISS
git.response.duration_ms=484
git.fetch.wants=b393c064ba071ce521aeea1ee66fca94b282d350
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=8462
git.pkt.payload.max=8441
git.sideband.band1.bytes=8440
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e13e950fc21293
Request
f6e6f68c…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format