The Federal Bureau of Investigation told the company that the disclosure resulted from the so-called Vulnerability Equities Process for deciding what to do with information about security holes, Apple said.
The process, which has been in place since 2010 and was revamped in 2014, is meant to balance law enforcement and US intelligence desires to hack into devices with the need to warn manufacturers so they can patch holes before criminals and other hackers take advantage of them.
The vulnerability that was disclosed to Apple involved older versions of the iPhone and the Mac, Apple said.
The FBI and the White House both declined to comment.
The issue of how US government agencies decide to share information about vulnerabilities in computer and telecom products has received renewed scrutiny since the FBI announced last month that it had found a way to break into the iPhone of one of the shooters in December's massacre in San Bernardino, California.
Reuters reported earlier this month that the FBI believed it did not have legal ownership of the necessary information and techniques for breaking into the iPhone so would not be able to bring it to the White House for review under the equities process.
The day after that report, the FBI offered information about the older vulnerabilities to Apple. The move may have been an effort to show that it can and does use the White House process and disclose hacking methods when it can.
The flaw the FBI disclosed to Apple this month did nothing to change the company's perception that the White House process is less effective than has been claimed, said an Apple executive who declined to be named.
Though he declined to provide technical details, the executive said the problem had been fixed by the company nine months ago, with the release of iOS 9 for phones and Mac OS X El Capitan.
About 80 percent of iPhones are on a safe version of the operating system, and Apple said it does not plan to issue a patch for the older software.
© Thomson Reuters 2016
For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.